<template>
  <div class="le-1">
    <div class="ban-1">
      <el-icon color="#409EFC" class="no-inherit">
        <DeleteLocation />
      </el-icon>
      常用链接
    </div>
    <div class="bans-1">
      <div class="xue-1" v-for="(item, index) in arrss" :key="index">
        <img :src="item.icon" v-if="item?.icon" class="img-1" />
        <img src="@/assets/head/t-1.png" v-else class="img-1" />
        <div class="tes-w">{{ item?.name }}</div>
      </div>
    </div>
  </div>
</template>

<script lang="ts" setup>
import type { additionalProperties1 } from '@/services/types/Applic'

defineProps<{
  arrss: additionalProperties1
}>()
</script>

<style lang="scss" scoped>
.le-1 {
  width: 300px;
  height: 100%;
  padding: 10px;
  box-sizing: border-box;
  //background-color: rgb(221, 11, 116);
}
.ban-1 {
  height: 40px;
  background: #f5f8fc;
  border-bottom: 1px solid #999;
  display: flex;
  align-items: center;
}
.bans-1 {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.xue-1 {
  width: 40%;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  //border: 1px solid #c90909;
  box-sizing: border-box;
}
.img-1 {
  width: 24px;
  height: 24px;
}
.tes-w {
  font-size: 16px;
  margin-left: 3px;
  //文本省略
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
</style>
